const fs = require('fs');

let apiUrl = {};

const files = fs.readdirSync('F:\\myCode\\gitcode\\NeteaseCloudMusicApi\\module');
files.forEach(item => {
  // console.log(item);
  const fileName = item.split('.')[0]
  const key = fileName.toUpperCase();
  const value = '/' + fileName.replace(/_/g, '/')
  // console.log(key, value);
  apiUrl[key] = value;
})

console.log(apiUrl);